<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>会员增加</title>
<link rel="stylesheet" type="text/css"
	href="../../layui/css/layui.css" media="all">
<style type="text/css">
	body{
		margin:20px 0px;
	}
</style>
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>增加会员</legend>
	</fieldset>

	<form class="layui-form" action="../../member/add.action" method="post">
		<!-- <div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员Id</label>
				<div class="layui-input-inline">
					<input type="number" name="memberId" id="memberId" required
						lay-verify="required" placeholder="会员Id" autocomplete="off" maxlength="10"
						class="layui-input">
				</div>
			</div>
		</div> -->
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员名称</label>
				<div class="layui-input-inline">
					<input type="text" name="memberName" id="memberName" required
						lay-verify="required" placeholder="会员名称" autocomplete="off" maxlength="10"
						class="layui-input">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员密码</label>
				<div class="layui-input-inline">
					<input type="password" name="memberPwd" id="memberPwd" required
						lay-verify="required" placeholder="会员密码" maxlength="10"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员电话</label>
				<div class="layui-input-inline">
					<input type="number" name="memberPhone" id="memberPhone" required
						lay-verify="required" maxlength="10" placeholder="会员电话"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员说明</label>
				<div class="layui-input-inline">
					<input type="text" name="memberExplain" id="memberExplain" required
						lay-verify="required" maxlength="10" placeholder="会员说明"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员积分</label>
				<div class="layui-input-inline">
					<input type="number" name="memberIntegral" id="memberIntegral" required
						lay-verify="required" maxlength="10" placeholder="会员积分"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员性别</label>
				<div class="layui-input-inline">
					<input id="man" type="radio" checked="checked" name="memberSex" value="男"/>男
					<input id="woman" type="radio"  name="memberSex" value="女"/>女
					<!-- 
					<input type="text" name="memberSex" id="memberSex" required
						lay-verify="required" maxlength="10" placeholder="会员性别"
						autocomplete="off" class="layui-input"> -->
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员卡号</label>
				<div class="layui-input-inline">
					<input type="number" name="cardNumber" id="cardNumber" required
						lay-verify="required" maxlength="10" placeholder="会员卡号"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员等级</label>
				<div class="layui-input-inline">
					<input id="gradeName" type="radio" checked="checked" name="gradeName" value="普通会员" required/>普通会员
					</br>
					<input id="gradeName" type="radio"  name="gradeName" value="高级会员" required/>高级会员
					</br>
					<input id="gradeName" type="radio"  name="gradeName" value="超级会员" required/>超级会员
					<!-- <input type="text" name="gradeName" id="gradeName" required
						lay-verify="required" maxlength="10" placeholder="会员等级"
						autocomplete="off" class="layui-input"> -->
				</div>
			</div>
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">会员折扣</label>
				<div class="layui-input-inline">
					<input type="number" name="cardDiscounts" id="cardDiscounts" required
						lay-verify="required" maxlength="10" placeholder="会员折扣"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		<!-- 
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">注册时间</label>
				<div class="layui-input-inline">
					<input type="text" name="registDate" id="registDate" required
						lay-verify="required" maxlength="10" placeholder="会员注册时间"
						autocomplete="off" class="layui-input">
				</div>
			</div>
		</div> -->
		
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-submit=""
					lay-filter="Add" value="立即增加">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	<script src="../../layui/layui.js"></script>
	<script type="text/javascript">
		
		layui.use('form', function(){
			  var form = layui.form
			  ,layer = layui.layer
			  ,$ = layui.$;
			  
			form.on('submit(Add)',function(){
				  parent.location.reload(); // 父页面刷新
			  });
		});
	</script>
</body>
</html>